package com.gzq.service.impl;

import java.util.List;

import com.gzq.dao.AreaDao;
import com.gzq.entity.Area;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gzq.service.AreaService;

@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    private AreaDao areaDao;

    @Override
    public List<Area> findAreaByLevel() {

        return areaDao.findAreaByLevel1();
    }

    @Override
    public List<Area> findAreaByLevel(String areaName) {

        return areaDao.findAreaByLevel2(areaName);
    }

    @Override
    public List<Area> findAreaByLevel(String areaName, String cityName) {

        return areaDao.findAreaByLevel3(areaName, cityName);
    }

}
